package com.hrbu.mp.generator.myenum;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * @Description:
 * @Author: tanyajun
 * @CreateTime: 2021/3/31
 * @Blog: https://tanyajun.top
 */
public enum Level {
    LOW(1, "初级"),  MEDIUM(2, "中级"),  HIGH(3, "高级");

    Level(int code, String descp) {
        this.code = code;
        this.descp = descp;
    }

    @EnumValue//标记数据库存的值是code
    private final int code;
    private final String descp;
}
